﻿@model Core.Model.QuestionList
@{
    ViewBag.Title = "QuestionsEditor";
    
}
@using (Html.BeginForm())
{
    <div>
        <table>
            <tr>
                <td>
                    <h2>Title of the Questionary:</h2>

                </td>
                <td>
                    @Html.EditorFor(x => x.Title)

                </td>
            </tr>
            <tr>
                <td>   
                    <h2 >Description:</h2>

                </td>
                <td>
                    @Html.TextAreaFor(x => x.Description)

                </td>
            </tr> 
            <tr>
                <td>
                <strong>Is Questionary Anonymous</strong>
                @Html.CheckBoxFor(x => x.IsAnonymous)
                </td>
            </tr>

            <tr>
                <td>
                    <h3>Question with one variant of answer</h3>
                </td>
                <td>
                    <h3>Question with many variants of answer</h3>
                </td>
                <td><strong>Number of variants</strong>
                    @Html.TextBox("tb");</td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li>@Html.ActionLink("Add text question", "TextQuestion", "Questions")</li>
                        <li>@Html.ActionLink("Add 'Choose Date' question", "DateQuestion", "Questions")</li>
                        <li>Add "Answer with a accuracy" question</li>
                    </ul>
                </td>
                <td>
                    <ul>
                        <li>@Html.ActionLink("Add 'Choose some answers' question","CheckBoxQuestion","Questions")</li>
                        <li>Add "Choose one answer from a list" question</li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    
                </td>
            </tr>
        </table>
    </div>
    
    <p>
        <input type="submit" value="Save" />
    </p>
}
    